import request from '@/utils/request'

// 获取用户绑定的考勤范围
export function getCheckArea (data = {}) {
    return request({
        url: '/workbench/attend-member/checkArea',
        method: 'get',
        params: data
    })
}

// 获取人员列表
export function getPersonList (data = {}) {
    return request({
        url: '/workbench/attend-member/list',
        method: 'get',
        params: data
    })
}

// 修改
export function memberEditByCheck (data = {}) {
    return request({
        url: '/workbench/attend-member/update',
        method: 'post',
        data: data
    })
}


//   获取已关联的用户id
export function getMemberIds (data = {}) {
    return request({
        url: '/workbench/attend-member/members',
        method: 'get',
        params: data
    })
}


//   新增关联用户
export function addUser (data = {}) {
    return request({
        url: '/workbench/attend-member/create',
        method: 'post',
        data: data
    })
}
//   删除
export function del (data = {}) {
    return request({
        url: '/workbench/attend-member/remove',
        method: 'get',
        params: data
    })
}